import { apiClient } from "./api";

export const videoService = {
  getAll: () => apiClient.get("/videos"),
  getById: (id) => apiClient.get(`/videos/${id}`),
  create: (video) => apiClient.post("/videos", video),
  update: (id, video) => apiClient.put(`/videos/${id}`, video),
  remove: (id) => apiClient.delete(`/videos/${id}`),
};
